<template>
  <router-view v-slot="{ Component }">
    <transition name="slide">
      <keep-alive :max="12">
        <component
          :is="Component"
          class="page"
        />
      </keep-alive>
    </transition>
  </router-view>
</template>

<script lang="ts" setup>
//

</script>

<style lang="postcss">
html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  background: #dfe6ec;
}
#app {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.page {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
</style>
